using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using Tool.BaseClass;

namespace Tool
{
	public class Update : Form
	{
		private System.ComponentModel.IContainer components = null;

		private GroupBox groupBox1;

		private Label label1;

		private Label label2;

		private LinkLabel ll_url;

		private Button bt_copy;

		public Update()
		{
			this.InitializeComponent();
		}

		private void bt_copy_Click(object sender, EventArgs e)
		{
			string string_ = this.ll_url.Text.Trim();
			if (GClass0.smethod_0(string_))
			{
				this.bt_copy.Text = "已复制";
			}
		}

		private void ll_url_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			string fileName = this.ll_url.Text.Trim();
			System.Diagnostics.Process.Start(fileName);
		}

		//protected override void vmethod_0(bool bool_0)
		//{
		//	if (bool_0 && this.components != null)
		//	{
		//		this.components.Dispose();
		//	}
		//	base.Dispose(bool_0);
		//}

		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(Update));
			this.groupBox1 = new GroupBox();
			this.bt_copy = new Button();
			this.ll_url = new LinkLabel();
			this.label2 = new Label();
			this.label1 = new Label();
			this.groupBox1.SuspendLayout();
			base.SuspendLayout();
			this.groupBox1.Controls.Add(this.bt_copy);
			this.groupBox1.Controls.Add(this.ll_url);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(13, 13);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Padding = new Padding(12);
			this.groupBox1.Size = new System.Drawing.Size(377, 206);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.bt_copy.Location = new System.Drawing.Point(255, 25);
			this.bt_copy.Name = "bt_copy";
			this.bt_copy.Size = new System.Drawing.Size(75, 23);
			this.bt_copy.TabIndex = 3;
			this.bt_copy.Text = "复制网址";
			this.bt_copy.UseVisualStyleBackColor = true;
			this.bt_copy.Click += new EventHandler(this.bt_copy_Click);
			this.ll_url.AutoSize = true;
			this.ll_url.Location = new System.Drawing.Point(88, 30);
			this.ll_url.Name = "ll_url";
			this.ll_url.Size = new System.Drawing.Size(161, 12);
			this.ll_url.TabIndex = 2;
			this.ll_url.TabStop = true;
			this.ll_url.Text = "http://blog.smalltool.net/";
			this.ll_url.LinkClicked += new LinkLabelLinkClickedEventHandler(this.ll_url_LinkClicked);
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(16, 30);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(65, 12);
			this.label2.TabIndex = 1;
			this.label2.Text = "官方网站：";
			this.label1.AutoSize = true;
			this.label1.Font = new System.Drawing.Font("微软雅黑", 13f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, 134);
			this.label1.ForeColor = System.Drawing.Color.Gray;
			this.label1.Location = new System.Drawing.Point(15, 175);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(256, 19);
			this.label1.TabIndex = 0;
			this.label1.Text = "备注：目前仅支持在官网查看是否有更新。";
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(402, 231);
			base.Controls.Add(this.groupBox1);
			base.FormBorderStyle = FormBorderStyle.FixedSingle;
			//base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "Update";
			base.Opacity = 0.96;
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterParent;
			this.Text = "检查更新";
			this.groupBox1.ResumeLayout(false);
			this.groupBox1.PerformLayout();
			base.ResumeLayout(false);
		}
	}
}
